home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 98 / Skunkware 98.iso / src / net / readline-2.0mg.tar.gz / readline-2.0mg.tar / readline-2.0mg / mg.diffs < prev    next >
Text File  |  1995-04-17  |  10KB  |  387 lines

  1. diff -r -c readline-2.0/Makefile.in readline-2.0mg/Makefile.in
  2. *** readline-2.0/Makefile.in    Wed Jul 20 15:35:13 1994
  3. --- readline-2.0mg/Makefile.in    Mon Apr 17 17:05:38 1995
  4. ***************
  5. *** 22,27 ****
  6. --- 22,28 ----
  7.   exec_prefix = $(prefix)
  8.   bindir = $(exec_prefix)/bin
  9.   libdir = $(exec_prefix)/lib
  10. + incdir = $(exec_prefix)/include
  11.   mandir = $(prefix)/man/man1
  12.   
  13.   SHELL = /bin/sh
  14. ***************
  15. *** 78,84 ****
  16.   HSOURCES = readline.h rldefs.h chardefs.h keymaps.h history.h \
  17.          posixstat.h tilde.h rlconf.h
  18.   
  19. ! INSTALLED_HEADERS = readline.h chardefs.h keymaps.h history.h
  20.   
  21.   OBJECTS = readline.o vi_mode.o funmap.o keymaps.o parens.o search.o \
  22.         rltty.o complete.o bind.o isearch.o display.o signals.o \
  23. --- 79,85 ----
  24.   HSOURCES = readline.h rldefs.h chardefs.h keymaps.h history.h \
  25.          posixstat.h tilde.h rlconf.h
  26.   
  27. ! INSTALLED_HEADERS = readline.h chardefs.h keymaps.h history.h tilde.h
  28.   
  29.   OBJECTS = readline.o vi_mode.o funmap.o keymaps.o parens.o search.o \
  30.         rltty.o complete.o bind.o isearch.o display.o signals.o \
  31. ***************
  32. *** 124,131 ****
  33.       ld ${SHLIB_OPTS} -o $@ history.so
  34.   
  35.   documentation: force
  36. !     [ ! -d doc ] && mkdir doc
  37. !     (if [ -d doc ]; then cd doc; $(MAKE) $(MFLAGS); fi)
  38.   
  39.   force:
  40.   
  41. --- 125,132 ----
  42.       ld ${SHLIB_OPTS} -o $@ history.so
  43.   
  44.   documentation: force
  45. !     [ -d doc ] || mkdir doc
  46. !     ( cd doc; $(MAKE) $(MFLAGS) )
  47.   
  48.   force:
  49.   
  50. ***************
  51. *** 136,144 ****
  52.       -$(RANLIB) -t $(libdir)/libreadline.a
  53.   
  54.   installdirs:
  55. !     [ ! -d $(incdir)/readline ] && { \
  56. !       mkdir $(incdir)/readline && chmod 755 $(incdir)/readline; }
  57. !     [ ! -d $(libdir) ] && mkdir $(libdir)
  58.   
  59.   uninstall:
  60.       [ -n "$(incdir)" ] && cd $(incdir)/readline && \
  61. --- 137,145 ----
  62.       -$(RANLIB) -t $(libdir)/libreadline.a
  63.   
  64.   installdirs:
  65. !     [ -d $(incdir)/readline ] || mkdir $(incdir)/readline
  66. !     -chmod 755 $(incdir)/readline
  67. !     [ -d $(libdir) ] || mkdir $(libdir)
  68.   
  69.   uninstall:
  70.       [ -n "$(incdir)" ] && cd $(incdir)/readline && \
  71. diff -r -c readline-2.0/bind.c readline-2.0mg/bind.c
  72. *** readline-2.0/bind.c    Wed Aug  3 10:25:56 1994
  73. --- readline-2.0mg/bind.c    Sun Nov 20 19:56:34 1994
  74. ***************
  75. *** 21,26 ****
  76. --- 21,30 ----
  77.      675 Mass Ave, Cambridge, MA 02139, USA. */
  78.   #define READLINE_LIBRARY
  79.   
  80. + #if defined (HAVE_CONFIG_H)
  81. + #  include "config.h"
  82. + #endif
  83.   #include <stdio.h>
  84.   #include <sys/types.h>
  85.   #include <fcntl.h>
  86. diff -r -c readline-2.0/complete.c readline-2.0mg/complete.c
  87. *** readline-2.0/complete.c    Wed Aug  3 10:25:56 1994
  88. --- readline-2.0mg/complete.c    Sun Nov 20 19:57:01 1994
  89. ***************
  90. *** 21,26 ****
  91. --- 21,30 ----
  92.      675 Mass Ave, Cambridge, MA 02139, USA. */
  93.   #define READLINE_LIBRARY
  94.   
  95. + #if defined (HAVE_CONFIG_H)
  96. + #  include "config.h"
  97. + #endif
  98.   #include <stdio.h>
  99.   #include <sys/types.h>
  100.   #include <fcntl.h>
  101. diff -r -c readline-2.0/display.c readline-2.0mg/display.c
  102. *** readline-2.0/display.c    Wed Aug  3 10:25:56 1994
  103. --- readline-2.0mg/display.c    Sun Nov 20 20:07:14 1994
  104. ***************
  105. *** 21,26 ****
  106. --- 21,30 ----
  107.      675 Mass Ave, Cambridge, MA 02139, USA. */
  108.   #define READLINE_LIBRARY
  109.   
  110. + #if defined (HAVE_CONFIG_H)
  111. + #  include "config.h"
  112. + #endif
  113.   #include <stdio.h>
  114.   #include <sys/types.h>
  115.   
  116. ***************
  117. *** 522,533 ****
  118.            start of the line and the cursor position. */
  119.         nleft = c_pos - pos;
  120.   
  121. !       /* Since backspace() doesn't know about invisible characters in the
  122.            prompt, and there's no good way to tell it, we compensate for
  123. !          those characters here and call backspace() directly. */
  124.         if (wrap_offset && cursor_linenum == 0 && nleft < _rl_last_c_pos)
  125.           {
  126. !           backspace (_rl_last_c_pos - nleft);
  127.             _rl_last_c_pos = nleft;
  128.           }
  129.   
  130. --- 526,537 ----
  131.            start of the line and the cursor position. */
  132.         nleft = c_pos - pos;
  133.   
  134. !       /* Since rl_backspace() doesn't know about invisible characters in the
  135.            prompt, and there's no good way to tell it, we compensate for
  136. !          those characters here and call rl_backspace() directly. */
  137.         if (wrap_offset && cursor_linenum == 0 && nleft < _rl_last_c_pos)
  138.           {
  139. !           rl_backspace (_rl_last_c_pos - nleft);
  140.             _rl_last_c_pos = nleft;
  141.           }
  142.   
  143. ***************
  144. *** 916,922 ****
  145.   #endif /* HACK_TERMCAP_MOTION */
  146.       }
  147.     else if (_rl_last_c_pos != new)
  148. !     backspace (_rl_last_c_pos - new);
  149.     _rl_last_c_pos = new;
  150.   }
  151.   
  152. --- 920,926 ----
  153.   #endif /* HACK_TERMCAP_MOTION */
  154.       }
  155.     else if (_rl_last_c_pos != new)
  156. !     rl_backspace (_rl_last_c_pos - new);
  157.     _rl_last_c_pos = new;
  158.   }
  159.   
  160. ***************
  161. *** 1062,1071 ****
  162.   {
  163.     register int i;
  164.   
  165. !   backspace (l);
  166.     for (i = 0; i < l; i++)
  167.       putc (' ', rl_outstream);
  168. !   backspace (l);
  169.     for (i = 0; i < l; i++)
  170.       visible_line[--_rl_last_c_pos] = '\0';
  171.     rl_display_fixed++;
  172. --- 1066,1075 ----
  173.   {
  174.     register int i;
  175.   
  176. !   rl_backspace (l);
  177.     for (i = 0; i < l; i++)
  178.       putc (' ', rl_outstream);
  179. !   rl_backspace (l);
  180.     for (i = 0; i < l; i++)
  181.       visible_line[--_rl_last_c_pos] = '\0';
  182.     rl_display_fixed++;
  183. diff -r -c readline-2.0/funmap.c readline-2.0mg/funmap.c
  184. *** readline-2.0/funmap.c    Wed Aug  3 10:25:56 1994
  185. --- readline-2.0mg/funmap.c    Sun Feb 12 22:53:13 1995
  186. ***************
  187. *** 21,26 ****
  188. --- 21,30 ----
  189.      675 Mass Ave, Cambridge, MA 02139, USA. */
  190.   #define READLINE_LIBRARY
  191.   
  192. + #if defined (HAVE_CONFIG_H)
  193. + #  include "config.h"
  194. + #endif
  195.   #if defined (STATIC_MALLOC)
  196.   static char *xmalloc (), *xrealloc ();
  197.   #else
  198. diff -r -c readline-2.0/isearch.c readline-2.0mg/isearch.c
  199. *** readline-2.0/isearch.c    Wed Aug  3 10:25:56 1994
  200. --- readline-2.0mg/isearch.c    Sun Nov 20 19:57:22 1994
  201. ***************
  202. *** 26,31 ****
  203. --- 26,35 ----
  204.      675 Mass Ave, Cambridge, MA 02139, USA. */
  205.   #define READLINE_LIBRARY
  206.   
  207. + #if defined (HAVE_CONFIG_H)
  208. + #  include "config.h"
  209. + #endif
  210.   #include <stdio.h>
  211.   
  212.   #if defined (HAVE_UNISTD_H)
  213. diff -r -c readline-2.0/keymaps.c readline-2.0mg/keymaps.c
  214. *** readline-2.0/keymaps.c    Wed Aug  3 10:25:57 1994
  215. --- readline-2.0mg/keymaps.c    Sun Feb 12 22:53:14 1995
  216. ***************
  217. *** 20,25 ****
  218. --- 20,29 ----
  219.      Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
  220.   #define READLINE_LIBRARY
  221.   
  222. + #if defined (HAVE_CONFIG_H)
  223. + #  include "config.h"
  224. + #endif
  225.   #if defined (HAVE_STDLIB_H)
  226.   #  include <stdlib.h>
  227.   #else
  228. diff -r -c readline-2.0/readline.c readline-2.0mg/readline.c
  229. *** readline-2.0/readline.c    Wed Aug  3 10:25:57 1994
  230. --- readline-2.0mg/readline.c    Sun Nov 20 21:47:35 1994
  231. ***************
  232. *** 22,27 ****
  233. --- 22,31 ----
  234.      675 Mass Ave, Cambridge, MA 02139, USA. */
  235.   #define READLINE_LIBRARY
  236.   
  237. + #if defined (HAVE_CONFIG_H)
  238. + #  include "config.h"
  239. + #endif
  240.   #include <stdio.h>
  241.   #include <sys/types.h>
  242.   #include <fcntl.h>
  243. ***************
  244. *** 1500,1506 ****
  245.   }
  246.   
  247.   /* Move the cursor back. */
  248. ! backspace (count)
  249.        int count;
  250.   {
  251.     register int i;
  252. --- 1504,1510 ----
  253.   }
  254.   
  255.   /* Move the cursor back. */
  256. ! rl_backspace (count)
  257.        int count;
  258.   {
  259.     register int i;
  260. diff -r -c readline-2.0/rltty.c readline-2.0mg/rltty.c
  261. *** readline-2.0/rltty.c    Wed Aug  3 10:25:57 1994
  262. --- readline-2.0mg/rltty.c    Sun Nov 20 19:58:12 1994
  263. ***************
  264. *** 22,27 ****
  265. --- 22,31 ----
  266.      675 Mass Ave, Cambridge, MA 02139, USA. */
  267.   #define READLINE_LIBRARY
  268.   
  269. + #if defined (HAVE_CONFIG_H)
  270. + #  include "config.h"
  271. + #endif
  272.   #include <sys/types.h>
  273.   #include <signal.h>
  274.   #include <errno.h>
  275. diff -r -c readline-2.0/search.c readline-2.0mg/search.c
  276. *** readline-2.0/search.c    Wed Aug  3 10:25:57 1994
  277. --- readline-2.0mg/search.c    Sun Nov 20 19:58:28 1994
  278. ***************
  279. *** 22,27 ****
  280. --- 22,31 ----
  281.      675 Mass Ave, Cambridge, MA 02139, USA. */
  282.   #define READLINE_LIBRARY
  283.   
  284. + #if defined (HAVE_CONFIG_H)
  285. + #  include "config.h"
  286. + #endif
  287.   #include <sys/types.h>
  288.   #include <stdio.h>
  289.   
  290. diff -r -c readline-2.0/signals.c readline-2.0mg/signals.c
  291. *** readline-2.0/signals.c    Wed Aug  3 10:25:57 1994
  292. --- readline-2.0mg/signals.c    Sun Nov 20 19:58:44 1994
  293. ***************
  294. *** 21,26 ****
  295. --- 21,30 ----
  296.      675 Mass Ave, Cambridge, MA 02139, USA. */
  297.   #define READLINE_LIBRARY
  298.   
  299. + #if defined (HAVE_CONFIG_H)
  300. + #  include "config.h"
  301. + #endif
  302.   #include <stdio.h>
  303.   #include <sys/types.h>
  304.   #include <fcntl.h>
  305. ***************
  306. *** 30,37 ****
  307.   #include <signal.h>
  308.   
  309.   #if defined (HAVE_UNISTD_H)
  310. ! #  include <unistd.h>
  311. ! #endif /* HAVE_UNISTD_H */
  312.   
  313.   #if defined (HAVE_STDLIB_H)
  314.   #  include <stdlib.h>
  315. --- 34,41 ----
  316.   #include <signal.h>
  317.   
  318.   #if defined (HAVE_UNISTD_H)
  319. ! #    include <unistd.h>
  320. ! #endif    /* HAVE_UNISTD_H */
  321.   
  322.   #if defined (HAVE_STDLIB_H)
  323.   #  include <stdlib.h>
  324. ***************
  325. *** 46,53 ****
  326.   #endif /* !errno */
  327.   
  328.   #include "posixstat.h"
  329. - /* System-specific feature definitions and include files. */
  330.   #include "rldefs.h"
  331.   
  332.   #if defined (GWINSZ_IN_SYS_IOCTL)
  333. --- 50,55 ----
  334. ***************
  335. *** 198,203 ****
  336. --- 200,206 ----
  337.         sigprocmask (SIG_SETMASK, &set, (sigset_t *)NULL);
  338.   #else /* !HAVE_POSIX_SIGNALS */
  339.   #  if defined (HAVE_BSD_SIGNALS)
  340. + "choke!!!"
  341.         sigsetmask (omask & ~(sigmask (sig)));
  342.   #  endif /* HAVE_BSD_SIGNALS */
  343.   #endif /* !HAVE_POSIX_SIGNALS */
  344. diff -r -c readline-2.0/tilde.c readline-2.0mg/tilde.c
  345. *** readline-2.0/tilde.c    Wed Aug  3 10:25:57 1994
  346. --- readline-2.0mg/tilde.c    Sun Feb 12 22:53:14 1995
  347. ***************
  348. *** 19,24 ****
  349. --- 19,28 ----
  350.      along with Readline; see the file COPYING.  If not, write to the Free
  351.      Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
  352.   
  353. + #if defined (HAVE_CONFIG_H)
  354. + #  include "config.h"
  355. + #endif
  356.   #include "memalloc.h"
  357.   
  358.   #if defined (HAVE_STRING_H)
  359. diff -r -c readline-2.0/vi_mode.c readline-2.0mg/vi_mode.c
  360. *** readline-2.0/vi_mode.c    Wed Aug  3 10:25:58 1994
  361. --- readline-2.0mg/vi_mode.c    Sun Nov 20 20:00:08 1994
  362. ***************
  363. *** 27,32 ****
  364. --- 27,36 ----
  365.   /*            VI Emulation Mode                */
  366.   /*                                    */
  367.   /* **************************************************************** */
  368. + #if defined (HAVE_CONFIG_H)
  369. + #  include "config.h"
  370. + #endif
  371.   #include "rlconf.h"
  372.   
  373.   #if defined (VI_MODE)
  374.